package com.excilys.controller;

import static org.fest.assertions.Assertions.assertThat;

import org.fluentlenium.core.FluentPage;

public class LoginPage extends FluentPage {

	public String getUrl() {
		return "http://192.168.10.136:8081/m4n-web-0.0.1-SNAPSHOT/login";
	}

	@Override
	public void isAt() {
		assertThat(title()).contains("Log In");
	}

	public void fillAndSubmitForm(String... paramsOrdered) {
		fill("input").with(paramsOrdered);
		click(".btn-primary");
	}

}
